package com.bringway.p2p.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.p2p.dao.P2PGrtzzqDao;
import com.bringway.p2p.service.P2PGrtzzqService;

import net.sf.json.JSONObject;
 
/*
 * @author fan
 * @className P2PGrtzzqServiceImpl
 * @description 个人投资债权信息业务实现类
 * @date 2016年1月4日下午12:53:57
 */
@Service
@Transactional
public class P2PGrtzzqServiceImpl implements P2PGrtzzqService {
	@Autowired
	private P2PGrtzzqDao p2pGrtzzqDao;
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.bringway.p2p.service.P2PGrtzzqService#queryGrtzzq(net.sf.json.
	 * JSONObject)
	 */
	@Override
	public List queryGrtzzq(JSONObject parms) {
		return p2pGrtzzqDao.queryGrttzq(parms);
	}
	@Override
	public List youjiaGrtzzq(JSONObject parms) {
		return p2pGrtzzqDao.youjiaGrttzq(parms);
	}
	@Override
	public int getPageCount(JSONObject parms) {
		return p2pGrtzzqDao.getPageCount(parms);
	}
	@Override
	public float getGrtzJe(JSONObject parms) {
		return p2pGrtzzqDao.getGrtzJe(parms);
	}
	@Override
	public int getyoujiaPageCount(JSONObject parms) {
		return p2pGrtzzqDao.getyoujiaPageCount(parms);
	}
	@Override
	public float getyoujiaGrtzJe(JSONObject parms) {
		return p2pGrtzzqDao.getyoujiaGrtzJe(parms);
	}
	@Override
	public List<Map<String, Object>> queryTzxxByGyhList(String username,Integer start,Integer limit) {
		return p2pGrtzzqDao.queryTzxxByGyhList(username,start,limit);
	}
	@Override
	public int getTzxxCountByGyh(String username) {
		return p2pGrtzzqDao.getTzxxCountByGyh(username);
	}
	@Override
	public float getTzxxSumJeByGyh(String username) {
		return p2pGrtzzqDao.getTzxxSumJeByGyh(username);
	}
}
